def use_except_more_type():
    try:
        num=int(input('请输入一个整数'))
        result=8/num
        print(result)
    except ValueError:
        print("请输入正数")
    except ZeroDivisionError:
        print('不可以输入0')

    except Exception as result:
        print(result)
if __name__ == '__main__':
    use_except_more_type()